﻿<!--
    <%csharp%>TempUrl = ModuleCtrl.Header4("UserListLatest","和您一样的病友",true,false); <%/csharp%>
    {TempUrl}
 -->
			
			<%csharp%> if(UserData.Id > 0) { <%/csharp%>     <!-- 用户已经登录 -->
			    
				<%csharp%>if (UserData.DiseaseId > 0) { <%/csharp%>     <!-- 用户已经登录并且选择了疾病 -->
				
				<!-- 活跃用户开始 -->
				    <%csharp%>TempUrl = ModuleCtrl.Header4("UserListActive","和我一样的病友",true,false); <%/csharp%>
                    {TempUrl}
                    <div class="patientslikeme">
			        <p><span>最活跃的病友</span></p>
					<ul class="pictureliststyle">
                        <%csharp%>foreach(UserInfo user in PatientDataListActive) { <%/csharp%>
                            <%csharp%>TempUrl = "/Profile/Index.aspx?uid=" + user.Id; <%/csharp%>
                                <li>
                                    <a href="{GetUrl(TempUrl)}" class="user_img" target="_blank" ><img src="{user.Avatar}" width="45px" height="45px" alt="{user.UserName}"/></a>
                                    <p><a href="{GetUrl(TempUrl)}" target="_blank" title="{user.DiseaseName}">{user.UserName}</a></p>
                                </li>
                
                             <%csharp%> } <%/csharp%>
                    </ul>
                    

			       <p><span>最新加入的病友</span></p>
					<ul class="pictureliststyle">
                        <%csharp%>foreach(UserInfo user in UserDataListLatest) { <%/csharp%>
                            <%csharp%>TempUrl = "/Profile/Index.aspx?uid=" + user.Id; <%/csharp%>
                                <li>
                                    <a href="{GetUrl(TempUrl)}" class="user_img" target="_blank" ><img src="{user.Avatar}" width="45px" height="45px" alt="{user.UserName}"/></a>
                                    <p><a href="{GetUrl(TempUrl)}" target="_blank" title="{user.DiseaseName}">{user.UserName}</a></p>
                                </li>
                
                             <%csharp%> } <%/csharp%>
                    </ul>
                  </div>
                    <%csharp%>TempUrl = ModuleCtrl.Footer("UserListLattest"); <%/csharp%>
                    {TempUrl}
                   <!-- 最新加入用户结束 -->

				<%csharp%>} else { <%/csharp%>  <!-- 用户已经登录， 但没有选择疾病 -->
				
				<%csharp%>TempUrl = ModuleCtrl.Header4("UserListSimilar","和您一样的病友",true,false); <%/csharp%>
                 {TempUrl}
				
				<div style="font: 14px Arial, Helvetica, sans-serif; padding: 20px 16px 20px 16px; text-align: left; ">
				
				    <%csharp%>TempUrl = "/DiseaseHistory/Index.aspx";<%/csharp%>
				    赶快<a href="{this.GetUrl(TempUrl)}" style="color:Green;"><b>选择</b></a>您的疾病吧!
				    <br /><br />
				    我们将提供给您更多和您一样的病友!
				    
				</div>
				
				 <%csharp%>TempUrl = ModuleCtrl.Footer("UserListSimilar"); <%/csharp%>
                 {TempUrl}
				
				<%csharp%> } <%/csharp%>   
				
			<%csharp%> } else { <%/csharp%>     <!-- 用户还没有登录或注册 -->
			
				 <%csharp%>TempUrl = ModuleCtrl.Header4("UserListSimilar","和您一样的病友",true,false); <%/csharp%>
                 {TempUrl}
			    
			    <div style="font: 14px Arial, Helvetica, sans-serif; padding: 20px 16px 20px 16px; text-align: left; ">

			        赶快<%csharp%>TempUrl = "/User/Login.aspx";<%/csharp%><a href="{this.GetUrl(TempUrl)}" style="color:Green;"><b>登录</b></a> 或
			        <%csharp%>TempUrl = "/User/Register.aspx";<%/csharp%><a href="{this.GetUrl(TempUrl)}" style="color:Green;"><b>注册</b></a>吧!
			        <br /><br />
			        我们将提供给您更多和您一样的病友!
			    </div>
			    
				<%csharp%>TempUrl = ModuleCtrl.Footer("UserListSimilar"); <%/csharp%>
                {TempUrl}
			
			<%csharp%> } <%/csharp%>
			
	<!--		
    <%csharp%>TempUrl = ModuleCtrl.Footer("UserListLatest"); <%/csharp%>
    {TempUrl}     
    -->